package com.ruoyi.charge.domain;

import org.springframework.data.annotation.Id;
import org.springframework.data.elasticsearch.annotations.Document;
import org.springframework.data.elasticsearch.annotations.Field;
import org.springframework.data.elasticsearch.annotations.FieldType;

/**
 * 对应elasticSearch中的charging索引
 */
@Document(indexName = "charging")
public class ChargingProgress {
    @Id//这是主键，值不能重复
    private Long id;

    @Field(type = FieldType.Long)
    private Long userId;

    @Field(type = FieldType.Long)
    private Long gunId;

    @Field(type = FieldType.Long)
    private Long temperature;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public Long getUserId() {
        return userId;
    }

    public void setUserId(Long userId) {
        this.userId = userId;
    }

    public Long getGunId() {
        return gunId;
    }

    public void setGunId(Long gunId) {
        this.gunId = gunId;
    }

    public Long getTemperature() {
        return temperature;
    }

    public void setTemperature(Long temperature) {
        this.temperature = temperature;
    }

    @Override
    public String toString() {
        return "ChargingProgress{" +
                "id=" + id +
                ", userId=" + userId +
                ", gunId=" + gunId +
                ", temperature=" + temperature +
                '}';
    }
}
